import request from '../utils/request'
export default {
    //打印机列表
    printerList(postData){
        return request.send({
            method:'post',
            path: '/print-api/printStation/getPrinterList',
            postData:postData
        })
    },
    //获取当前打印任务
    getCurrentList(postData){
        return request.send({
            method:'post',
            path: '/print-api/printStation/getTaskCurrentByPrintId',
            postData:postData
        })
    },
    //获取历史打印任务
    getHistoryList(postData){
        return request.send({
            method:'post',
            path: '/print-api/printStation/getTaskHistoryByPrintId',
            postData:postData
        })
    },
    //获取所有打印任务
    getTaskCurrentAll(postData){
        return request.send({
            method:'post',
            path: '/print-api/printStation/getTaskCurrentAll',
            postData:postData
        })
    },
    //添加打印机
    addPrinterList(postData){
        return request.send({
            method:'post',
            path: '/print-api/printStation/savePrinterInfo',
            postData:postData
        })
    },
    //删除打印机
    deletePrinterList(postData){
        return request.send({
            method:'post',
            path: '/print-api/printStation/delPrinter',
            postData:postData
        })
    },
    //启用/禁用打印机
    switchPrinterList(postData){
        return request.send({
            method:'post',
            path: '/print-api/printStation/openPrinter',
            postData:postData
        })
    },
    //更改打印机任务状态
    updateTasksStatus(postData){
        return request.send({
            method:'post',
            path: '/print-api/printStation/updateTasksStatus',
            postData:postData
        })
    },
    //组织架构
    organizationFramework(postData){
        return request.send({
            method:'post',
            path: '/print-api/printService/queryBaseorgTree',
            postData:postData
        })
    },
    //更新登录态
    updateStationState(postData){
        return request.send({
            method:'post',
            path: '/print-api/printStation/updateStationState',
            postData:postData
        })
    },    
}
